package com.hdey.pojo.heng;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("tb_usc_purchase_master")
public class TbUscPurchaseMaster {

	/**
	 * 主键
	 */
	@TableId(type = IdType.AUTO)
	private Integer purchaseMasterId;

	/**
	 * 采购单号（当前时间）
	 */
	private String purchaseNo;

	/**
	 * 采购单生成日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private java.time.LocalDateTime purchaseDate;

	/**
	 * 采购状态
	 */
	private String purchaseStatus;

	/**
	 * 订单状态
	 */
	private String orderStatus;

	/**
	 * 供应商
	 */
	private String supplyCode;

	/**
	 * 金额
	 */
	private Double price;

	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 创建者
	 */
	private String createBy;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	private java.time.LocalDate createDate;

	/**
	 * 修改者
	 */
	private String updateBy;

	/**
	 * 修改日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	private java.time.LocalDate updateDate;

	public Integer getPurchaseMasterId() {
		return purchaseMasterId;
	}

	public void setPurchaseMasterId(Integer purchaseMasterId) {
		this.purchaseMasterId = purchaseMasterId;
	}

	public String getPurchaseNo() {
		return purchaseNo;
	}

	public void setPurchaseNo(String purchaseNo) {
		this.purchaseNo = purchaseNo;
	}

	public LocalDateTime getPurchaseDate() {
		return purchaseDate;
	}

	public void setPurchaseDate(LocalDateTime purchaseDate) {
		this.purchaseDate = purchaseDate;
	}

	public String getPurchaseStatus() {
		return purchaseStatus;
	}

	public void setPurchaseStatus(String purchaseStatus) {
		this.purchaseStatus = purchaseStatus;
	}

	public String getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}

	public String getSupplyCode() {
		return supplyCode;
	}

	public void setSupplyCode(String supplyCode) {
		this.supplyCode = supplyCode;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public LocalDate getCreateDate() {
		return createDate;
	}

	public void setCreateDate(LocalDate createDate) {
		this.createDate = createDate;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public LocalDate getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(LocalDate updateDate) {
		this.updateDate = updateDate;
	}

	@Override
	public String toString() {
		return "TbUscPurchaseMaster{" +
				"purchaseMasterId=" + purchaseMasterId +
				", purchaseNo='" + purchaseNo + '\'' +
				", purchaseDate=" + purchaseDate +
				", purchaseStatus='" + purchaseStatus + '\'' +
				", orderStatus='" + orderStatus + '\'' +
				", supplyCode='" + supplyCode + '\'' +
				", price=" + price +
				", remark='" + remark + '\'' +
				", createBy='" + createBy + '\'' +
				", createDate=" + createDate +
				", updateBy='" + updateBy + '\'' +
				", updateDate=" + updateDate +
				'}';
	}

	public TbUscPurchaseMaster(Integer purchaseMasterId, String purchaseNo, LocalDateTime purchaseDate, String purchaseStatus, String orderStatus, String supplyCode, Double price, String remark, String createBy, LocalDate createDate, String updateBy, LocalDate updateDate) {
		this.purchaseMasterId = purchaseMasterId;
		this.purchaseNo = purchaseNo;
		this.purchaseDate = purchaseDate;
		this.purchaseStatus = purchaseStatus;
		this.orderStatus = orderStatus;
		this.supplyCode = supplyCode;
		this.price = price;
		this.remark = remark;
		this.createBy = createBy;
		this.createDate = createDate;
		this.updateBy = updateBy;
		this.updateDate = updateDate;
	}

	public TbUscPurchaseMaster() {
	}
}
